package com.qcby.chatservice.socket.handle;

import com.qcby.chatservice.common.result.Result;
import com.qcby.chatservice.socket.context.FlowContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 单聊处理
 *
 * @author cong.zhen
 * @date 2023/01/07
 */
@Component
@Slf4j
public class SingleChatHandle implements ChatServiceHandle{

    @Override
    public Result beforeStateExecute(FlowContext flowContext) {
        log.info("这是单聊的前置校验");
        return Result.getSuccessResult(null);
    }

    @Override
    public Result doStateExecute(FlowContext flowContext) {
        return null;
    }

    @Override
    public Result afterStateExecute(FlowContext flowContext) {
        return null;
    }

    @Override
    public Result rollBackExecute(FlowContext flowContext) {
        return null;
    }
}
